{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 设置driver"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-50-8ae4025e7ff4>:19: DeprecationWarning: use options instead of chrome_options\n",
      "  driver = webdriver.Chrome( chrome_options = opts) #desired_capabilities=caps,\n"
     ]
    }
   ],
   "source": [
    "from selenium import webdriver\n",
    "from selenium.webdriver.common.desired_capabilities import DesiredCapabilities\n",
    "\n",
    "\n",
    "#caps=dict()\n",
    "#caps[\"pageLoadStrategy\"] = \"none\"   # Do not wait for full page load\n",
    "\n",
    "opts = webdriver.ChromeOptions()\n",
    "opts.add_argument('--no-sandbox')#解决DevToolsActivePort文件不存在的报错\n",
    "opts.add_argument('window-size=1920x3000') #指定浏览器分辨率\n",
    "opts.add_argument('--disable-gpu') #谷歌文档提到需要加上一这个属性来规避bug\n",
    "opts.add_argument('--hide-scrollbars') #隐藏滚动条, 应对些特殊页面\n",
    "#opts.add_argument('blink-settings=imagesEnabled=false') #不加载图片, 提升速度\n",
    "#opts.add_argument('--headless') #浏览器不提供可视化页面. linux下如果系统不支持可视化不加这条会启动失败\n",
    "# opts.binary_location = \"C:\\portable\\PortableApps\\IronPortable\\App\\Iron\\chrome.exe\"\n",
    "# opts.binary_location = \"C:\\Program Files\\Google\\Chrome\\Application\\chromedriver.exe\" #\"H:\\_coding_\\Gitee\\InternetNewMedia\\CapstonePrj2016\\chromedriver.exe\"  \n",
    "\n",
    "\n",
    "driver = webdriver.Chrome( chrome_options = opts) #desired_capabilities=caps,"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 打开CNKI\n",
    "* 1.校园网，自动登录\n",
    "* 2.校外网，需要使用校外登录"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {},
   "outputs": [],
   "source": [
    "driver.get('https://cnki.net')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 检查是否是中山大学南方学院登录"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'中山大学南方学院'"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "driver.find_element_by_id('Ecp_loginShowName1').get_attribute('innerHTML')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 打开高级检索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_id('highSearch')\n",
    "element.get_attribute('innerHTML')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 检查窗口\n",
    "* 只要是多个窗口，请检查窗口信息\n",
    "* 窗口信息根据窗口加载的顺序按照列表存储，每一个窗口又唯一识别的窗口ID"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'CDwindow-0F0E3C7463651FC71C711731EFA56CBA'"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 查看当前窗口\n",
    "driver.current_window_handle"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 55,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['CDwindow-0F0E3C7463651FC71C711731EFA56CBA',\n",
       " 'CDwindow-1AB254B8ADA4EA73273133F206C4E325']"
      ]
     },
     "execution_count": 55,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 查看所有窗口\n",
    "driver.window_handles"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 56,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-56-704fdf3805c1>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[1])\n"
     ]
    }
   ],
   "source": [
    "# 切换窗口\n",
    "driver.switch_to_window(driver.window_handles[1])"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 点击学术期刊（分类可自选）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//ul[@class=\"doctype-menus keji\"]/li[@data-id=\"xsqk\"]/a')\n",
    "element.get_attribute('innerHTML')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 点击专业检索"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('/html/body/div[2]/div/div[2]/ul/li[4]')\n",
    "element.get_attribute('innerHTML')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 勾选SCI、CSSCI"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 59,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//input[@key=\"EI\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 60,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 北大核心\n",
    "element = driver.find_element_by_xpath('//input[@key=\"HX\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//input[@key=\"CSI\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//input[@key=\"SI\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//input[@key=\"CSD\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 设置搜索query"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {},
   "outputs": [],
   "source": [
    "# query = 'SU = \"新媒体\" AND (TI \"人工智能\" OR TI = \"大数据\" OR TI = \"big data\")'\n",
    "query = 'SU=\"大数据\"'"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//textarea')\n",
    "element.clear()\n",
    "element.send_keys(query)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//input[@value=\"检索\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 检查检索信息，更换页面文章数量"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'共找到<em>26,479</em>条结果'"
      ]
     },
     "execution_count": 67,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 检查数量\n",
    "element = driver.find_element_by_xpath('//span[@class=\"pagerTitleCell\"]')\n",
    "element.get_attribute('innerHTML')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//i[@class=\"icon icon-sort\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "metadata": {},
   "outputs": [],
   "source": [
    "element = driver.find_element_by_xpath('//div[@id=\"perPageDiv\"]//li[@data-val=\"50\"]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 抓取页面信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 71,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Unnamed: 0</th>\n",
       "      <th>篇名</th>\n",
       "      <th>作者</th>\n",
       "      <th>刊名</th>\n",
       "      <th>发表时间</th>\n",
       "      <th>被引</th>\n",
       "      <th>下载</th>\n",
       "      <th>操作</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>滇西北格咱铜多金属矿集区含矿斑岩、不含矿斑岩与全球埃达克岩的对比研究  网络首发</td>\n",
       "      <td>刘学龙;陈建航;李守奎;李方兰;刘思晗</td>\n",
       "      <td>金属矿山</td>\n",
       "      <td>2021-06-16 16:47</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2</td>\n",
       "      <td>信息技术赋能基层治理的路径与限度  网络首发</td>\n",
       "      <td>张帆</td>\n",
       "      <td>兰州学刊</td>\n",
       "      <td>2021-06-16 15:59</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3</td>\n",
       "      <td>城市虚拟交通系统与交通发展决策支持模式研究  网络首发</td>\n",
       "      <td>王炜; 赵德; 华雪东; 周伟</td>\n",
       "      <td>中国工程科学</td>\n",
       "      <td>2021-06-16 14:42</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>4</td>\n",
       "      <td>基于扎根理论的企业数字化创新形成路径——多案例研究  网络首发</td>\n",
       "      <td>李小青; 李秉廉; 何玮萱; 周建</td>\n",
       "      <td>科技进步与对策</td>\n",
       "      <td>2021-06-16 13:31</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5</td>\n",
       "      <td>大数据下数模联动的随机退化设备剩余寿命预测技术  网络首发</td>\n",
       "      <td>李天梅; 司小胜; 刘翔; 裴洪</td>\n",
       "      <td>自动化学报</td>\n",
       "      <td>2021-06-15 16:19</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>6</td>\n",
       "      <td>中国共产党百年作风建设的特征分析及经验启示——基于大数据文本挖掘  网络首发</td>\n",
       "      <td>李文清; 杨莉芸; 陈蕊</td>\n",
       "      <td>广西社会科学</td>\n",
       "      <td>2021-06-15 11:11</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>7</td>\n",
       "      <td>基于大数据与信息技术的拖拉机零部件供应链</td>\n",
       "      <td>王弥</td>\n",
       "      <td>农机化研究</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>8</td>\n",
       "      <td>智能制造和大数据挖掘在农业机械设计中的应用</td>\n",
       "      <td>杜伯阳</td>\n",
       "      <td>农机化研究</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>9</td>\n",
       "      <td>“档案数据”一词的使用语境与学科内涵探析</td>\n",
       "      <td>赵跃; 石郦冰; 孙寒晗</td>\n",
       "      <td>档案学研究</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>10</td>\n",
       "      <td>数据管理业务与档案融合管理研究</td>\n",
       "      <td>蔡盈芳</td>\n",
       "      <td>档案学研究</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>11</td>\n",
       "      <td>刍议基于社交媒体数据的电视节目评价体系</td>\n",
       "      <td>马绪峰; 赵鑫磊; 宋凯</td>\n",
       "      <td>中国电视</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>12</td>\n",
       "      <td>深海富钴结核微区X射线荧光光谱分析和数据挖掘</td>\n",
       "      <td>任江波;王汾连;何高文;张昕;邓希光</td>\n",
       "      <td>光谱学与光谱分析</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>13</td>\n",
       "      <td>高能物理实验径迹系统流式数据获取框架的研究</td>\n",
       "      <td>吴冶;章红宇;朱科军;王之滨;陈玛丽</td>\n",
       "      <td>核技术</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>14</td>\n",
       "      <td>基于大数据技术的企业风险管理研究</td>\n",
       "      <td>张敏; 吴亭; 李雨新</td>\n",
       "      <td>中国注册会计师</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>15</td>\n",
       "      <td>大数据环境下Python语言在会计师事务所审计中的应用研究</td>\n",
       "      <td>李信</td>\n",
       "      <td>中国注册会计师</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>16</td>\n",
       "      <td>人工智能审计应用的国际进展</td>\n",
       "      <td>吴勇; 余洁; 王尚纯; 张超</td>\n",
       "      <td>中国注册会计师</td>\n",
       "      <td>2021-06-15</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>17</td>\n",
       "      <td>新兴权利视域下商业数据分类与保护研究</td>\n",
       "      <td>郑璇玉; 杨博雅</td>\n",
       "      <td>科技与法律(中英文)</td>\n",
       "      <td>2021-06-12</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>18</td>\n",
       "      <td>法益抑或财产权利？——《民法典》规定的“数据”的法律性质认定</td>\n",
       "      <td>沈浩蓝</td>\n",
       "      <td>科技与法律(中英文)</td>\n",
       "      <td>2021-06-12</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>19</td>\n",
       "      <td>个人信息匿名化处理法律标准探究</td>\n",
       "      <td>程海玲</td>\n",
       "      <td>科技与法律(中英文)</td>\n",
       "      <td>2021-06-12</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>20</td>\n",
       "      <td>创新型城市管理与决策研究前沿——第234期双清论坛学术综述  网络首发</td>\n",
       "      <td>陈晓红;聂建国;吴志强;杨列勋;刘作仪</td>\n",
       "      <td>中国科学基金</td>\n",
       "      <td>2021-06-11 18:24</td>\n",
       "      <td>NaN</td>\n",
       "      <td>113.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>21</td>\n",
       "      <td>科学数据智能:人工智能在科学发现中的机遇与挑战  网络首发</td>\n",
       "      <td>孟小峰</td>\n",
       "      <td>中国科学基金</td>\n",
       "      <td>2021-06-11 18:01</td>\n",
       "      <td>NaN</td>\n",
       "      <td>304.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>22</td>\n",
       "      <td>2020年中国出版融合发展报告  网络首发</td>\n",
       "      <td>周蔚华; 陈丹丹</td>\n",
       "      <td>科技与出版</td>\n",
       "      <td>2021-06-11 13:34</td>\n",
       "      <td>NaN</td>\n",
       "      <td>67.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>23</td>\n",
       "      <td>宁波市鄞州区2017-2018年流行季老年糖尿病人群流感及其相关疾病发病密度和接种流感疫苗的...</td>\n",
       "      <td>詹思怡;杨瑛莹;沈鹏;陈奇;傅传喜</td>\n",
       "      <td>中国疫苗和免疫</td>\n",
       "      <td>2021-06-11</td>\n",
       "      <td>NaN</td>\n",
       "      <td>27.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>24</td>\n",
       "      <td>立足学科育人的小学生数据分析素养培育</td>\n",
       "      <td>韩萧楠</td>\n",
       "      <td>中国教育学刊</td>\n",
       "      <td>2021-06-10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>20.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>25</td>\n",
       "      <td>大数据时代传媒教育的互动式教学模式改革思考——评《大数据时代传媒教育研究》</td>\n",
       "      <td>郭清</td>\n",
       "      <td>中国教育学刊</td>\n",
       "      <td>2021-06-10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>61.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>26</td>\n",
       "      <td>智能技术在企业新契约风险管理中的应用</td>\n",
       "      <td>李英一</td>\n",
       "      <td>财会通讯</td>\n",
       "      <td>2021-06-10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>56.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>27</td>\n",
       "      <td>定量分析：大数据背景下语言哲学研究方法论</td>\n",
       "      <td>陈伟</td>\n",
       "      <td>浙江社会科学</td>\n",
       "      <td>2021-06-10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>81.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>28</td>\n",
       "      <td>大数据在供应链管理中应用的研究现状——基于CiteSpace的知识图谱分析</td>\n",
       "      <td>程晏萍; 黄千芷; 董慈蔚</td>\n",
       "      <td>华中师范大学学报(自然科学版)</td>\n",
       "      <td>2021-06-10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>239.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>29</td>\n",
       "      <td>山东省智慧果业云服务平台的设计与实现</td>\n",
       "      <td>崔冬冬;王晓芳;李晨;周菲;李颖芳</td>\n",
       "      <td>中国果树</td>\n",
       "      <td>2021-06-10</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>30</td>\n",
       "      <td>广西智慧柑桔技术构成与发展建议  网络首发</td>\n",
       "      <td>刘吉敏;覃泽林;方辉;曾志康;黄启厅</td>\n",
       "      <td>中国南方果树</td>\n",
       "      <td>2021-06-09 15:40</td>\n",
       "      <td>NaN</td>\n",
       "      <td>48.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>31</td>\n",
       "      <td>政府数据开放的法律责任与救济机制  网络首发</td>\n",
       "      <td>邢会强</td>\n",
       "      <td>行政法学研究</td>\n",
       "      <td>2021-06-09 14:24</td>\n",
       "      <td>NaN</td>\n",
       "      <td>92.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>32</td>\n",
       "      <td>大数据系统推介下的网络消费异化：表征、溯因及消解</td>\n",
       "      <td>马会端</td>\n",
       "      <td>河南师范大学学报(哲学社会科学版)</td>\n",
       "      <td>2021-06-09 13:41</td>\n",
       "      <td>NaN</td>\n",
       "      <td>129.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>33</td>\n",
       "      <td>共享经济平台数据治理:框架构建、核心要素及优化策略  网络首发</td>\n",
       "      <td>蒋国银; 陈玉凤; 匡亚林</td>\n",
       "      <td>情报杂志</td>\n",
       "      <td>2021-06-09 13:36</td>\n",
       "      <td>NaN</td>\n",
       "      <td>114.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>34</td>\n",
       "      <td>测绘大数据时代数据处理理论面临的挑战与发展  网络首发</td>\n",
       "      <td>朱建军; 宋迎春; 胡俊; 邹滨; 吴立新</td>\n",
       "      <td>武汉大学学报(信息科学版)</td>\n",
       "      <td>2021-06-09 10:26</td>\n",
       "      <td>NaN</td>\n",
       "      <td>163.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>35</td>\n",
       "      <td>我国政府数据协同治理的困境及应对研究  网络首发</td>\n",
       "      <td>梁宇; 郑易平</td>\n",
       "      <td>情报杂志</td>\n",
       "      <td>2021-06-09 10:02</td>\n",
       "      <td>NaN</td>\n",
       "      <td>148.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>36</td>\n",
       "      <td>数据赋能与我国制造企业创新:前沿探析与未来展望  网络首发</td>\n",
       "      <td>郭星光; 陈曦</td>\n",
       "      <td>科技进步与对策</td>\n",
       "      <td>2021-06-09 09:34</td>\n",
       "      <td>NaN</td>\n",
       "      <td>197.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>37</td>\n",
       "      <td>全国一体化大数据中心协同创新体系：总体框架与战略价值</td>\n",
       "      <td>易成岐; 窦悦; 陈东; 郭明军; 王建冬</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>160.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>38</td>\n",
       "      <td>全国一体化大数据中心引领下超大规模数据要素市场的体系架构与推进路径</td>\n",
       "      <td>王璟璇; 窦悦; 黄倩倩; 童楠楠</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>88.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>39</td>\n",
       "      <td>2021数博会“数字政府建设与治理现代化论坛”举行</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>136.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>40</td>\n",
       "      <td>打造数字湾区：粤港澳大湾区大数据中心建设的关键问题与路径建构</td>\n",
       "      <td>曾坚朋; 王建冬; 黄倩倩; 易成岐; 郭巧敏</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>205.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>41</td>\n",
       "      <td>2021数博会“数字政府论坛”在贵阳成功召开</td>\n",
       "      <td>NaN</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>22.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>42</td>\n",
       "      <td>中国数字化转型的理论阐释与运行机制</td>\n",
       "      <td>翟云; 蒋敏娟; 王伟玲</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>473.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>43</td>\n",
       "      <td>智能时代的教育科学研究：内涵、逻辑框架与实践进路</td>\n",
       "      <td>郑永和; 王杨春晓; 王一岩</td>\n",
       "      <td>中国远程教育</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>188.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>44</td>\n",
       "      <td>数据长城：国家数据资源储备体系的构建思路与实现路径</td>\n",
       "      <td>陈东; 赵正; 童楠楠; 王建冬; 都海明</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>53.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>45</td>\n",
       "      <td>大数据驱动公共卫生应急治理的智慧表征与实践图景</td>\n",
       "      <td>陈潭; 王鹏</td>\n",
       "      <td>电子政务</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>155.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>46</td>\n",
       "      <td>互联网平台垄断治理机制——基于平台双轮垄断发生机理的考察</td>\n",
       "      <td>陈兵; 林思宇</td>\n",
       "      <td>中国流通经济</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>281.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>47</td>\n",
       "      <td>数据驱动型并购的经营者集中审查挑战及应对策略</td>\n",
       "      <td>程晶晶</td>\n",
       "      <td>中国流通经济</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>69.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47</th>\n",
       "      <td>48</td>\n",
       "      <td>大数据分析能力如何影响供应链绩效——基于供应链弹性视域的分析</td>\n",
       "      <td>朱新球</td>\n",
       "      <td>中国流通经济</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>151.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>48</th>\n",
       "      <td>49</td>\n",
       "      <td>数据跨境流动法律规制的现状及其应对——以国际规则和我国《数据安全法（草案）》为视角</td>\n",
       "      <td>曾磊</td>\n",
       "      <td>中国流通经济</td>\n",
       "      <td>2021-06-09</td>\n",
       "      <td>NaN</td>\n",
       "      <td>166.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>49</th>\n",
       "      <td>50</td>\n",
       "      <td>国家安全视阈下生物监测情报体系建设研究  网络首发</td>\n",
       "      <td>王明程; 张冬冬; 丁寒</td>\n",
       "      <td>情报杂志</td>\n",
       "      <td>2021-06-08 17:45</td>\n",
       "      <td>NaN</td>\n",
       "      <td>75.0</td>\n",
       "      <td>下载</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "    Unnamed: 0                                                 篇名  \\\n",
       "0            1           滇西北格咱铜多金属矿集区含矿斑岩、不含矿斑岩与全球埃达克岩的对比研究  网络首发   \n",
       "1            2                             信息技术赋能基层治理的路径与限度  网络首发   \n",
       "2            3                        城市虚拟交通系统与交通发展决策支持模式研究  网络首发   \n",
       "3            4                    基于扎根理论的企业数字化创新形成路径——多案例研究  网络首发   \n",
       "4            5                      大数据下数模联动的随机退化设备剩余寿命预测技术  网络首发   \n",
       "5            6             中国共产党百年作风建设的特征分析及经验启示——基于大数据文本挖掘  网络首发   \n",
       "6            7                               基于大数据与信息技术的拖拉机零部件供应链   \n",
       "7            8                              智能制造和大数据挖掘在农业机械设计中的应用   \n",
       "8            9                               “档案数据”一词的使用语境与学科内涵探析   \n",
       "9           10                                    数据管理业务与档案融合管理研究   \n",
       "10          11                                刍议基于社交媒体数据的电视节目评价体系   \n",
       "11          12                             深海富钴结核微区X射线荧光光谱分析和数据挖掘   \n",
       "12          13                              高能物理实验径迹系统流式数据获取框架的研究   \n",
       "13          14                                   基于大数据技术的企业风险管理研究   \n",
       "14          15                      大数据环境下Python语言在会计师事务所审计中的应用研究   \n",
       "15          16                                      人工智能审计应用的国际进展   \n",
       "16          17                                 新兴权利视域下商业数据分类与保护研究   \n",
       "17          18                     法益抑或财产权利？——《民法典》规定的“数据”的法律性质认定   \n",
       "18          19                                    个人信息匿名化处理法律标准探究   \n",
       "19          20                创新型城市管理与决策研究前沿——第234期双清论坛学术综述  网络首发   \n",
       "20          21                      科学数据智能:人工智能在科学发现中的机遇与挑战  网络首发   \n",
       "21          22                              2020年中国出版融合发展报告  网络首发   \n",
       "22          23  宁波市鄞州区2017-2018年流行季老年糖尿病人群流感及其相关疾病发病密度和接种流感疫苗的...   \n",
       "23          24                                 立足学科育人的小学生数据分析素养培育   \n",
       "24          25              大数据时代传媒教育的互动式教学模式改革思考——评《大数据时代传媒教育研究》   \n",
       "25          26                                 智能技术在企业新契约风险管理中的应用   \n",
       "26          27                               定量分析：大数据背景下语言哲学研究方法论   \n",
       "27          28              大数据在供应链管理中应用的研究现状——基于CiteSpace的知识图谱分析   \n",
       "28          29                                 山东省智慧果业云服务平台的设计与实现   \n",
       "29          30                              广西智慧柑桔技术构成与发展建议  网络首发   \n",
       "30          31                             政府数据开放的法律责任与救济机制  网络首发   \n",
       "31          32                           大数据系统推介下的网络消费异化：表征、溯因及消解   \n",
       "32          33                    共享经济平台数据治理:框架构建、核心要素及优化策略  网络首发   \n",
       "33          34                        测绘大数据时代数据处理理论面临的挑战与发展  网络首发   \n",
       "34          35                           我国政府数据协同治理的困境及应对研究  网络首发   \n",
       "35          36                      数据赋能与我国制造企业创新:前沿探析与未来展望  网络首发   \n",
       "36          37                         全国一体化大数据中心协同创新体系：总体框架与战略价值   \n",
       "37          38                  全国一体化大数据中心引领下超大规模数据要素市场的体系架构与推进路径   \n",
       "38          39                          2021数博会“数字政府建设与治理现代化论坛”举行   \n",
       "39          40                     打造数字湾区：粤港澳大湾区大数据中心建设的关键问题与路径建构   \n",
       "40          41                             2021数博会“数字政府论坛”在贵阳成功召开   \n",
       "41          42                                  中国数字化转型的理论阐释与运行机制   \n",
       "42          43                           智能时代的教育科学研究：内涵、逻辑框架与实践进路   \n",
       "43          44                          数据长城：国家数据资源储备体系的构建思路与实现路径   \n",
       "44          45                            大数据驱动公共卫生应急治理的智慧表征与实践图景   \n",
       "45          46                       互联网平台垄断治理机制——基于平台双轮垄断发生机理的考察   \n",
       "46          47                             数据驱动型并购的经营者集中审查挑战及应对策略   \n",
       "47          48                     大数据分析能力如何影响供应链绩效——基于供应链弹性视域的分析   \n",
       "48          49          数据跨境流动法律规制的现状及其应对——以国际规则和我国《数据安全法（草案）》为视角   \n",
       "49          50                          国家安全视阈下生物监测情报体系建设研究  网络首发   \n",
       "\n",
       "                         作者                 刊名              发表时间  被引     下载  \\\n",
       "0       刘学龙;陈建航;李守奎;李方兰;刘思晗               金属矿山  2021-06-16 16:47 NaN    NaN   \n",
       "1                        张帆               兰州学刊  2021-06-16 15:59 NaN    NaN   \n",
       "2           王炜; 赵德; 华雪东; 周伟             中国工程科学  2021-06-16 14:42 NaN    NaN   \n",
       "3         李小青; 李秉廉; 何玮萱; 周建            科技进步与对策  2021-06-16 13:31 NaN    NaN   \n",
       "4          李天梅; 司小胜; 刘翔; 裴洪              自动化学报  2021-06-15 16:19 NaN    NaN   \n",
       "5              李文清; 杨莉芸; 陈蕊             广西社会科学  2021-06-15 11:11 NaN    NaN   \n",
       "6                        王弥              农机化研究        2021-06-15 NaN    NaN   \n",
       "7                       杜伯阳              农机化研究        2021-06-15 NaN    NaN   \n",
       "8              赵跃; 石郦冰; 孙寒晗              档案学研究        2021-06-15 NaN    NaN   \n",
       "9                       蔡盈芳              档案学研究        2021-06-15 NaN    NaN   \n",
       "10             马绪峰; 赵鑫磊; 宋凯               中国电视        2021-06-15 NaN    NaN   \n",
       "11       任江波;王汾连;何高文;张昕;邓希光           光谱学与光谱分析        2021-06-15 NaN    NaN   \n",
       "12       吴冶;章红宇;朱科军;王之滨;陈玛丽                核技术        2021-06-15 NaN    NaN   \n",
       "13              张敏; 吴亭; 李雨新            中国注册会计师        2021-06-15 NaN    NaN   \n",
       "14                       李信            中国注册会计师        2021-06-15 NaN    NaN   \n",
       "15          吴勇; 余洁; 王尚纯; 张超            中国注册会计师        2021-06-15 NaN    NaN   \n",
       "16                 郑璇玉; 杨博雅         科技与法律(中英文)        2021-06-12 NaN    NaN   \n",
       "17                      沈浩蓝         科技与法律(中英文)        2021-06-12 NaN    NaN   \n",
       "18                      程海玲         科技与法律(中英文)        2021-06-12 NaN    NaN   \n",
       "19      陈晓红;聂建国;吴志强;杨列勋;刘作仪             中国科学基金  2021-06-11 18:24 NaN  113.0   \n",
       "20                      孟小峰             中国科学基金  2021-06-11 18:01 NaN  304.0   \n",
       "21                 周蔚华; 陈丹丹              科技与出版  2021-06-11 13:34 NaN   67.0   \n",
       "22        詹思怡;杨瑛莹;沈鹏;陈奇;傅传喜            中国疫苗和免疫        2021-06-11 NaN   27.0   \n",
       "23                      韩萧楠             中国教育学刊        2021-06-10 NaN   20.0   \n",
       "24                       郭清             中国教育学刊        2021-06-10 NaN   61.0   \n",
       "25                      李英一               财会通讯        2021-06-10 NaN   56.0   \n",
       "26                       陈伟             浙江社会科学        2021-06-10 NaN   81.0   \n",
       "27            程晏萍; 黄千芷; 董慈蔚    华中师范大学学报(自然科学版)        2021-06-10 NaN  239.0   \n",
       "28        崔冬冬;王晓芳;李晨;周菲;李颖芳               中国果树        2021-06-10 NaN    NaN   \n",
       "29       刘吉敏;覃泽林;方辉;曾志康;黄启厅             中国南方果树  2021-06-09 15:40 NaN   48.0   \n",
       "30                      邢会强             行政法学研究  2021-06-09 14:24 NaN   92.0   \n",
       "31                      马会端  河南师范大学学报(哲学社会科学版)  2021-06-09 13:41 NaN  129.0   \n",
       "32            蒋国银; 陈玉凤; 匡亚林               情报杂志  2021-06-09 13:36 NaN  114.0   \n",
       "33    朱建军; 宋迎春; 胡俊; 邹滨; 吴立新      武汉大学学报(信息科学版)  2021-06-09 10:26 NaN  163.0   \n",
       "34                  梁宇; 郑易平               情报杂志  2021-06-09 10:02 NaN  148.0   \n",
       "35                  郭星光; 陈曦            科技进步与对策  2021-06-09 09:34 NaN  197.0   \n",
       "36    易成岐; 窦悦; 陈东; 郭明军; 王建冬               电子政务        2021-06-09 NaN  160.0   \n",
       "37        王璟璇; 窦悦; 黄倩倩; 童楠楠               电子政务        2021-06-09 NaN   88.0   \n",
       "38                      NaN               电子政务        2021-06-09 NaN  136.0   \n",
       "39  曾坚朋; 王建冬; 黄倩倩; 易成岐; 郭巧敏               电子政务        2021-06-09 NaN  205.0   \n",
       "40                      NaN               电子政务        2021-06-09 NaN   22.0   \n",
       "41             翟云; 蒋敏娟; 王伟玲               电子政务        2021-06-09 NaN  473.0   \n",
       "42           郑永和; 王杨春晓; 王一岩             中国远程教育        2021-06-09 NaN  188.0   \n",
       "43    陈东; 赵正; 童楠楠; 王建冬; 都海明               电子政务        2021-06-09 NaN   53.0   \n",
       "44                   陈潭; 王鹏               电子政务        2021-06-09 NaN  155.0   \n",
       "45                  陈兵; 林思宇             中国流通经济        2021-06-09 NaN  281.0   \n",
       "46                      程晶晶             中国流通经济        2021-06-09 NaN   69.0   \n",
       "47                      朱新球             中国流通经济        2021-06-09 NaN  151.0   \n",
       "48                       曾磊             中国流通经济        2021-06-09 NaN  166.0   \n",
       "49             王明程; 张冬冬; 丁寒               情报杂志  2021-06-08 17:45 NaN   75.0   \n",
       "\n",
       "    操作  \n",
       "0   下载  \n",
       "1   下载  \n",
       "2   下载  \n",
       "3   下载  \n",
       "4   下载  \n",
       "5   下载  \n",
       "6   下载  \n",
       "7   下载  \n",
       "8   下载  \n",
       "9   下载  \n",
       "10  下载  \n",
       "11  下载  \n",
       "12  下载  \n",
       "13  下载  \n",
       "14  下载  \n",
       "15  下载  \n",
       "16  下载  \n",
       "17  下载  \n",
       "18  下载  \n",
       "19  下载  \n",
       "20  下载  \n",
       "21  下载  \n",
       "22  下载  \n",
       "23  下载  \n",
       "24  下载  \n",
       "25  下载  \n",
       "26  下载  \n",
       "27  下载  \n",
       "28  下载  \n",
       "29  下载  \n",
       "30  下载  \n",
       "31  下载  \n",
       "32  下载  \n",
       "33  下载  \n",
       "34  下载  \n",
       "35  下载  \n",
       "36  下载  \n",
       "37  下载  \n",
       "38  下载  \n",
       "39  下载  \n",
       "40  下载  \n",
       "41  下载  \n",
       "42  下载  \n",
       "43  下载  \n",
       "44  下载  \n",
       "45  下载  \n",
       "46  下载  \n",
       "47  下载  \n",
       "48  下载  \n",
       "49  下载  "
      ]
     },
     "execution_count": 71,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "element=driver.find_element_by_id('gridTable')\n",
    "页面_表格_html=element.get_attribute('innerHTML')\n",
    "pd.read_html(页面_表格_html)[0]"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 翻页(验证码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {},
   "outputs": [],
   "source": [
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {},
   "outputs": [],
   "source": [
    "nextpage = driver.find_element_by_id('PageNext')\n",
    "all = driver.find_element_by_xpath('//*[@id=\"selectCheckAll1\"]')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "1"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "3"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "4"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "5"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "6"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "7"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "8"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "9"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "for i in range(0,10):\n",
    "    driver.find_element_by_xpath('//*[@id=\"selectCheckAll1\"]').click()\n",
    "    driver.find_element_by_id('PageNext').click()\n",
    "    time.sleep(5)\n",
    "    display(i)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 爬取refworks"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 75,
   "metadata": {},
   "outputs": [],
   "source": [
    "#定位到要悬停的元素\n",
    "from selenium.webdriver.common.action_chains import ActionChains\n",
    "move = driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[2]/a')\n",
    "#对定位到的元素执行悬停操作\n",
    "ActionChains(driver).move_to_element(move).perform()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 76,
   "metadata": {},
   "outputs": [],
   "source": [
    "move = driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[2]/ul/li[1]/a')\n",
    "ActionChains(driver).move_to_element(move).perform()\n",
    "driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[2]/ul/li[1]/ul/li[8]/a').click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['CDwindow-0F0E3C7463651FC71C711731EFA56CBA',\n",
       " 'CDwindow-1AB254B8ADA4EA73273133F206C4E325',\n",
       " 'CDwindow-DCE03BBBA0E0937CD85E889685F01760']"
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "## 查看所有的窗口信息\n",
    "driver.window_handles"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-78-889a0c377e4b>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[2])\n"
     ]
    }
   ],
   "source": [
    "# 切换窗口\n",
    "driver.switch_to_window(driver.window_handles[2])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 导出 refworks\n",
    "element=driver.find_element_by_xpath('//*[@id=\"litotxt\"]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 后300篇"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 80,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-80-7f2dbf209d83>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[1])\n"
     ]
    }
   ],
   "source": [
    "#先回到检索窗口\n",
    "driver.switch_to_window(driver.window_handles[1])\n",
    "#消除原先选定\n",
    "element=driver.find_element_by_xpath('//*[@id=\"gridTable\"]/div[1]/div[2]/div[1]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 81,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "1"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "3"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "4"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "5"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "for i in range(0,6):\n",
    "    driver.find_element_by_xpath('//*[@id=\"selectCheckAll1\"]').click()\n",
    "    driver.find_element_by_id('PageNext').click()\n",
    "    time.sleep(5)\n",
    "    display(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 84,
   "metadata": {},
   "outputs": [],
   "source": [
    "#定位到要悬停的元素\n",
    "from selenium.webdriver.common.action_chains import ActionChains\n",
    "move = driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[2]/a')\n",
    "#对定位到的元素执行悬停操作\n",
    "ActionChains(driver).move_to_element(move).perform()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "metadata": {},
   "outputs": [],
   "source": [
    "move = driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[2]/ul/li[1]/a')\n",
    "ActionChains(driver).move_to_element(move).perform()\n",
    "driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[2]/ul/li[1]/ul/li[8]/a').click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 86,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-86-0dfe2a1ada8f>:1: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[2])\n"
     ]
    }
   ],
   "source": [
    "driver.switch_to_window(driver.window_handles[2])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 87,
   "metadata": {},
   "outputs": [],
   "source": [
    "#导出 refworks\n",
    "element=driver.find_element_by_xpath('//*[@id=\"litotxt\"]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 下载"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 88,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-88-8eb0a9654b96>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[1])\n"
     ]
    }
   ],
   "source": [
    "#窗口切换\n",
    "driver.switch_to_window(driver.window_handles[1])\n",
    "#回到首页\n",
    "driver.find_element_by_xpath('//*[@id=\"total\"]').click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 89,
   "metadata": {},
   "outputs": [],
   "source": [
    "#清除原先选定\n",
    "element=driver.find_element_by_xpath('//*[@id=\"gridTable\"]/div[1]/div[2]/div[1]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "1"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "3"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "4"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "5"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "6"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "7"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "8"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "9"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "for i in range(0,10):\n",
    "    driver.find_element_by_xpath('//*[@id=\"selectCheckAll1\"]').click()\n",
    "    driver.find_element_by_id('PageNext').click()\n",
    "    time.sleep(5)\n",
    "    display(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 批量下载\n",
    "element=driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[1]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-92-424ccd912453>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[4])\n"
     ]
    }
   ],
   "source": [
    "#窗口切换\n",
    "driver.switch_to_window(driver.window_handles[4])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 93,
   "metadata": {},
   "outputs": [
    {
     "ename": "NoSuchElementException",
     "evalue": "Message: no such element: Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//*[@id=\"btn-download-all\"]\"}\n  (Session info: chrome=91.0.4472.106)\n",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNoSuchElementException\u001b[0m                    Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-93-d4f0445e66dd>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[0;32m      1\u001b[0m \u001b[1;31m#点击下载\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 2\u001b[1;33m \u001b[0melement\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mdriver\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element_by_xpath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'//*[@id=\"btn-download-all\"]'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m      3\u001b[0m \u001b[0melement\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mclick\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mC:\\CloudMusic\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\u001b[0m in \u001b[0;36mfind_element_by_xpath\u001b[1;34m(self, xpath)\u001b[0m\n\u001b[0;32m    392\u001b[0m             \u001b[0melement\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mdriver\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element_by_xpath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'//div/td[1]'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    393\u001b[0m         \"\"\"\n\u001b[1;32m--> 394\u001b[1;33m         \u001b[1;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mfind_element\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mby\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mBy\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mXPATH\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m=\u001b[0m\u001b[0mxpath\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    395\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    396\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0mfind_elements_by_xpath\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mxpath\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;32mC:\\CloudMusic\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\u001b[0m in \u001b[0;36mfind_element\u001b[1;34m(self, by, value)\u001b[0m\n\u001b[0;32m    974\u001b[0m                 \u001b[0mby\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mBy\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mCSS_SELECTOR\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    975\u001b[0m                 \u001b[0mvalue\u001b[0m \u001b[1;33m=\u001b[0m \u001b[1;34m'[name=\"%s\"]'\u001b[0m \u001b[1;33m%\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 976\u001b[1;33m         return self.execute(Command.FIND_ELEMENT, {\n\u001b[0m\u001b[0;32m    977\u001b[0m             \u001b[1;34m'using'\u001b[0m\u001b[1;33m:\u001b[0m \u001b[0mby\u001b[0m\u001b[1;33m,\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    978\u001b[0m             'value': value})['value']\n",
      "\u001b[1;32mC:\\CloudMusic\\lib\\site-packages\\selenium\\webdriver\\remote\\webdriver.py\u001b[0m in \u001b[0;36mexecute\u001b[1;34m(self, driver_command, params)\u001b[0m\n\u001b[0;32m    319\u001b[0m         \u001b[0mresponse\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcommand_executor\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mexecute\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mdriver_command\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mparams\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    320\u001b[0m         \u001b[1;32mif\u001b[0m \u001b[0mresponse\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 321\u001b[1;33m             \u001b[0mself\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0merror_handler\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mcheck_response\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mresponse\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    322\u001b[0m             response['value'] = self._unwrap_value(\n\u001b[0;32m    323\u001b[0m                 response.get('value', None))\n",
      "\u001b[1;32mC:\\CloudMusic\\lib\\site-packages\\selenium\\webdriver\\remote\\errorhandler.py\u001b[0m in \u001b[0;36mcheck_response\u001b[1;34m(self, response)\u001b[0m\n\u001b[0;32m    240\u001b[0m                 \u001b[0malert_text\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mvalue\u001b[0m\u001b[1;33m[\u001b[0m\u001b[1;34m'alert'\u001b[0m\u001b[1;33m]\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mget\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;34m'text'\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    241\u001b[0m             \u001b[1;32mraise\u001b[0m \u001b[0mexception_class\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mmessage\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mscreen\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstacktrace\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0malert_text\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m--> 242\u001b[1;33m         \u001b[1;32mraise\u001b[0m \u001b[0mexception_class\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mmessage\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mscreen\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mstacktrace\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m    243\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m    244\u001b[0m     \u001b[1;32mdef\u001b[0m \u001b[0m_value_or_default\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mself\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mobj\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mkey\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mdefault\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
      "\u001b[1;31mNoSuchElementException\u001b[0m: Message: no such element: Unable to locate element: {\"method\":\"xpath\",\"selector\":\"//*[@id=\"btn-download-all\"]\"}\n  (Session info: chrome=91.0.4472.106)\n"
     ]
    }
   ],
   "source": [
    "#点击下载\n",
    "element=driver.find_element_by_xpath('//*[@id=\"btn-download-all\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 94,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-94-bd68c6fb06bd>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[1])\n"
     ]
    }
   ],
   "source": [
    "#后300篇下载,先回到检索窗口\n",
    "driver.switch_to_window(driver.window_handles[1])\n",
    "#消除原先选定\n",
    "element=driver.find_element_by_xpath('//*[@id=\"gridTable\"]/div[1]/div[2]/div[1]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 95,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "0"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "1"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "3"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "4"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "5"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "for i in range(0,6):\n",
    "    driver.find_element_by_xpath('//*[@id=\"selectCheckAll1\"]').click()\n",
    "    driver.find_element_by_id('PageNext').click()\n",
    "    time.sleep(5)\n",
    "    display(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 96,
   "metadata": {},
   "outputs": [],
   "source": [
    "#点击批量下载\n",
    "element=driver.find_element_by_xpath('//*[@id=\"batchOpsBox\"]/li[1]/a')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "<ipython-input-97-dedb2375141f>:2: DeprecationWarning: use driver.switch_to.window instead\n",
      "  driver.switch_to_window(driver.window_handles[5])\n"
     ]
    }
   ],
   "source": [
    "#窗口切换\n",
    "driver.switch_to_window(driver.window_handles[5])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 99,
   "metadata": {},
   "outputs": [],
   "source": [
    "#点击下载\n",
    "element=driver.find_element_by_xpath('//*[@id=\"btn-download-all\"]')\n",
    "element.click()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
